package lab02.test12;

public class Rctangular extends Shape {
    //属性：宽、高
    double height;
    double width;

    @Override
    double area() {
        return height * width;
    }

    @Override
    double perimeter() {
        return 2 * (height + width);
    }
    //ctrl+o:重写
}
